package com.adminx.controller.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.adminx.pojo.NavigationMenuPojo;
import com.adminx.service.ResourceService;

/**
 * 访问分析
 * @author liancheng
 */
@Controller
@RequestMapping("visitAnalysis")
public class VisitAnalysisController {
	
	@Autowired
	private ResourceService resourceService;
	
	@RequestMapping(value = "/init", method = RequestMethod.GET) 
	public String test(ModelMap map){
		NavigationMenuPojo navigationMenuPojo = this.resourceService.queryNavigation("/visitAnalysis/init.html");
		map.put("navigationMenuPojo", navigationMenuPojo);
		map.put("url", "/visitAnalysis/init.html");
		return "admin/visit/visit";
	}
	
}
